<html>
<head>
<title>管理系统</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "/xadmin/inc/common.html">
<script language="JavaScript">
function saveSystem() {
	$('#systemForm').form('submit',{  
	    url:'updatesystem',
	    onSubmit:function(param){
	        return $(this).form('validate');  
	    },  
	    success:function(data){
			$.messager.alert('提示',data,'info',function(){
		    	window.location.reload(true);
			});
			
	    }  
	});
}
function resetForm(){
	$('#sitename').val('${syscfg.sitename!}');
	$('#xpurl').val('${syscfg.xpurl!}');
	$('#email').val('${syscfg.email!}');
	$('#qq').val('${syscfg.qq!}');
	$('#copyright').val('${syscfg.copyright!}');
	$('#address').val('${syscfg.address!}');
	$('#zip').val('${syscfg.zip!}');
	$('#tel').val('${syscfg.tel!}');
	$('#themes').val('${syscfg.themes!}');
	$('#version').val('${syscfg.version!}');
	$('#showtip').val('${syscfg.showtip!}');
	$('#checkemail').val('${syscfg.checkemail!}');
	$('#pageList').val('${syscfg.pageList!}');
	setValue();
}
function setValue(){
	$('#shownum').combobox('setValue', '${syscfg.shownum!}');
	$('#adminnum').combobox('setValue', '${syscfg.adminnum!}');
	$('#pageSize').combobox('setValue', '${syscfg.pageSize!}');
}
</script>

</head>
<body onload='setValue();'>
    <div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<form method="post" name="system" id="systemForm">
<br>
<table class="table_all" align="center" border="0" cellpadding="0" width="90%"
			cellspacing="0" style="margin-top: 0px">
<tr><td colspan="4" class="td_title">&nbsp;网站信息设置</td></tr>
<tr> 
	<td class="td_table_1" width="150" style="padding-right:10px;" ><font color=red>*</font>网站名称：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" type="text" required="true" id="sitename" name="sitename" maxlength="20" style="width:300px;" value='${syscfg.sitename!}'></td>
	<td class="td_table_1" style="padding-right:10px;" ><font color=red>*</font>网站地址：</td>
	<td class="td_table_2" align="left">
	<input class="easyui-validatebox" type="text" required="true" id="xpurl" name="xpurl" maxlength="40" validType="url" style="width:300px;" value="${syscfg.xpurl!}"></td>
	</td>
</tr>
<tr> 
	<td class="td_table_1" style="padding-right:10px;" >管理信箱：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" type="text" id="email" name="email" maxlength="50" validType="email" style="width:300px;" value="${syscfg.email!}"></td>
	<td class="td_table_1" style="padding-right:10px;" >管理QQ：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" type="text" id="qq" name="qq" maxlength="50" validType="qq" style="width:300px;" value="${syscfg.qq!}"></td>
</tr>
<tr> 
	<td class="td_table_1" style="padding-right:10px;" >版权声明：</td>
	<td class="td_table_2" align="left" > 
	<input class="easyui-validatebox" type="text" id="copyright" name="copyright" maxlength="50" style="width:300px;" value="${syscfg.copyright!}">
	</td>
	<td class="td_table_1" style="padding-right:10px;" >联系电话：</td>
	<td class="td_table_2" align="left" > 
	<input class="easyui-validatebox" type="text" id="tel" name="tel" maxlength="50" style="width:300px;" value="${syscfg.tel!}">
	</td>
</tr>
<tr> 
	<td class="td_table_1" style="padding-right:10px;" >单位地址：</td>
	<td class="td_table_2" align="left" >
	<input class="easyui-validatebox" type="text" id="address" name="address" maxlength="50" style="width:300px;" value="${syscfg.address!}"> 
	</td>
	<td class="td_table_1" style="padding-right:10px;" >邮政编码：</td>
	<td class="td_table_2" align="left" >
	<input class="easyui-validatebox" type="text" id="zip" name="zip" maxlength="50" style="width:300px;" value="${syscfg.zip!}">
	</td>
</tr>
</table>
<table class="table_all" align="center" border="0" cellpadding="0" width="90%"
			cellspacing="0" style="margin-top: 0px">
<tr><td colspan="4" class="td_title">&nbsp;系统属性设置</td></tr>
<tr> 
	<td class="td_table_1" width="150">系统标签显示条数：</td>
	<td class="td_table_2" align="left">
		<select id="shownum" class="easyui-combobox" name="shownum" style="width:100px;" >
			<#list 1..30 as x>
				<option value="${x}">${x}</option>
			</#list> 
		</select>
	</td>
	<td class="td_table_1" width="150">普通列表显示条数：</td>
	<td class="td_table_2" align="left">
		<select id="adminnum" class="easyui-combobox" name="adminnum" style="width:100px;" >
			<#list 1..30 as x>
				<option value="${x}">${x}</option>
			</#list> 
		</select>
	</td>
</tr>
<tr> 
	<td class="td_table_1" width="150">标准列表显示条数：</td>
	<td class="td_table_2" align="left">
		<select id="pageSize" class="easyui-combobox" name="pageSize" style="width:100px;" >
			<#list 1..30 as x>
				<option value="${x}">${x}</option>
			</#list> 
		</select>
	</td>
	<td class="td_table_1"  width="150">标准列表分页列表：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" required="true" type="text" id="pageList" name="pageList" maxlength="50" style="width:300px;" value="${syscfg.pageList!}">
	</td>
</tr>
<tr> 
	<td class="td_table_1" width="150">是否弹出提示：</td>
	<td class="td_table_2" align="left">
		<input class="easyui-validatebox"required="true" type="text" id="showtip" name="showtip" maxlength="50" style="width:100px;" value="${syscfg.showtip!}">
	</td>
	<td class="td_table_1"  width="150">检查邮件间隔（秒）：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" required="true" type="text" id="checkemail" name="checkemail" maxlength="50" style="width:100px;" value="${syscfg.checkemail!}">
	</td>
</tr>
<tr> 
	<td class="td_table_1" width="150">系统皮肤：</td>
	<td class="td_table_2" align="left">
		<input class="easyui-validatebox" required="true" type="text" id="themes" name="themes" maxlength="50" style="width:100px;" value="${syscfg.themes!}">
	</td>
	<td class="td_table_1"  width="150">系统版本：</td>
	<td class="td_table_2" align="left" >
		<input class="easyui-validatebox" type="text" id="version" name="version" maxlength="50" style="width:100px;" value="${syscfg.version!}">
	</td>
</tr>
<tr> 
	<td class="td_table_2" colspan="4">
		<div align="center">
		<input type="button" class="button_70px" onclick="saveSystem();" value="保存">  
        <input type="button" class="button_70px" onclick="resetForm();" value="重置"> 
		</div>	</td>
</tr>
</table>
</form>
</div>
</body>
</html>